package com.revzone.demo001.mapper;

import com.revzone.demo001.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.revzone.demo001.entity.UserRoleDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Admin
* @description 针对表【user】的数据库操作Mapper
* @createDate 2025-06-25 10:01:25
* @Entity com.revzone.demo001.entity.User
*/
@Mapper
public interface UserMapper_old extends BaseMapper<User> {
    User findByUsername(String username);
    List<String> findRoleNamesByUserId(@Param("userid") Integer userId);
    List<String> getUserPermissionCodes(@Param("userid") Integer userId);
    List<String> getUserPermissionCodesbyname(@Param("username") String username);
    List<UserRoleDTO> getUserRolelist();

}




